package com.guiwu.caiguanlin.writeTest;

import java.util.Arrays;

public class StringTest {

    public static void main(String[] args) {
        test1();

    }


    //"AA&&11"转成["AA","11"]     把["AA","11"]转成"AA&&11"
    public static void test1(){
        String[] split = "AA&&11".split("&&");
        Arrays.stream(split).forEach(System.out::println);

        String join = String.join("&&", split);
        System.out.println(join);
    }

    //"3[A]"转成“AAA"    "2[3[A]]"转成“AAAAAA"
    public static void test2(){

    }
}
